﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace CodeMan.DbOther
{
    public class TableEntity : Entity<Int64>
    {
        /// <summary>
        /// 表名
        /// </summary>  
        public string Name { get; set; }
        /// <summary>
        /// 空间、模块
        /// </summary>
        public string Namespace { get; set; }
        /// <summary>
        /// 说明 序号
        /// </summary> 
        //public string Desc { get; set; }

        #region Attr 字段

        /// <summary>
        /// 序号
        /// </summary> 
        public Int16 SortNo { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary> 
        public string AName { get; set; }

        /// <summary>
        /// 标识 √
        /// </summary>
        public string IsIdentity { get; set; }
        /// <summary>
        /// 是否主键
        /// </summary>
        public string IsKey { get; set; }
        /// <summary>
        /// 类型
        /// </summary> 
        public string AType { get; set; }
        /// <summary>
        /// 长度
        /// </summary> 
        public int Length { get; set; }
        /// <summary>
        /// 占用字节数
        /// </summary>
        public Int16 Size { get; set; }
        /// <summary>
        /// 小数位数
        /// </summary>
        public int pointSize { get; set; }
        /// <summary>
        /// 默认值 
        /// </summary> 
        public string defaultValue { get; set; }
        /// <summary>
        /// 允许空
        /// </summary>
        public string isNull { get; set; }
        #endregion

        /// <summary>
        /// 字段说明
        /// </summary> 
        public string ADesc { get; set; }


    }
}
